<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<sj:head jqueryui="true" jquerytheme="redmond" />
</head>
<body>
	<s:url id="editurl" action="nedit" />
	<s:url id="remoteurl" action="ntable" />
	<s:form id="formValidateCustom" theme="simple" cssClass="yform">
		<fieldset>
			<legend>ADDRESS - LOOKUP</legend>
			<div class="type-text" style="float: clear;">
				<label for="echo">Post code: </label>
				<s:textfield id="firstname" name="firstname" /> &nbsp
				<label for="echo">Street: </label>
				<s:textfield id="surname" name="surname" /> &nbsp
				<label for="echo">Town: </label>
				<s:textfield id="surname" name="surname" />
			</div>
			<div class="type-text"></div>
			<div>
				<br />
				<sj:submit targets="result" validate="true" value="Search address"
					indicator="indicator" />
				<sj:submit value="None" />
				<sj:submit value="Clear" />
				<br />
			</div>
			<sjg:grid id="gridtable" caption="Customer Examples" dataType="json"
				href="%{remoteurl}" pager="true" gridModel="gridModel"
				rowList="10,15,20" rowNum="10" rownumbers="true"
				editurl="%{editurl}" navigator="true" navigatorSearch="true"
				navigatorSearchOptions="{sopt:['eq','ne','lt','gt']}"
				navigatorRefresh="true" navigatorDelete="true"
				onSelectRowTopics="rowselect">
				<sjg:gridColumn name="id" index="id" title="ID" formatter="integer"
					sortable="false" key="true" search="true"
					searchoptions="{sopt:['eq','ne','lt','gt']}" />
				<sjg:gridColumn name="name" index="name" title="Address"
					sortable="true" search="false" editable="true" edittype="select"
					editoptions="{value:'France:France;USA:USA;Australia:Australia;Norway:Norway;Poland:Poland;Germany:Germany;Spain:Spain'}" />
				<sjg:gridColumn name="name" index="name" title="Post code"
					sortable="true" search="false" editable="true" edittype="select"
					editoptions="{value:'France:France;USA:USA;Australia:Australia;Norway:Norway;Poland:Poland;Germany:Germany;Spain:Spain'}" />

				<sjg:gridColumn name="name" index="name" title="Town"
					sortable="true" search="false" editable="true" edittype="select"
					editoptions="{value:'France:France;USA:USA;Australia:Australia;Norway:Norway;Poland:Poland;Germany:Germany;Spain:Spain'}" />
				<sjg:gridColumn name="name" index="name" title="County"
					sortable="true" search="false" editable="true" edittype="select"
					editoptions="{value:'France:France;USA:USA;Australia:Australia;Norway:Norway;Poland:Poland;Germany:Germany;Spain:Spain'}" />
				<sjg:gridColumn name="name" index="name" title="Country"
					sortable="true" search="false" editable="true" edittype="select"
					editoptions="{value:'France:France;USA:USA;Australia:Australia;Norway:Norway;Poland:Poland;Germany:Germany;Spain:Spain'}" />

			</sjg:grid>
			<div>
				<br />
				<sj:submit targets="result" validate="true" value="Select"
					indicator="indicator" />
				<sj:submit value="Close" />
			</div>
		</fieldset>
	</s:form>
	<img id="indicator" src="images/indicator.gif" alt="Loading..."
		style="display: none" />
</body>
</html>
